// 参数配置 模块

import { SystemSpace } from "@/api/interface/parameter"
import { ResPage } from "@/api/interface/index"
import http from "@/api"

// ------------------电价配置------------------ //
// 电价配置 分页查询
export const electricPricePage = (params: SystemSpace.ElectricPricePageQuery) => {
  return http.post<ResPage<SystemSpace.ElectricPricePage>>("/electric/price/page", params)
}
// 电价配置 峰平谷列表
export const electricItemList = (id: number) => {
  return http.get<SystemSpace.ElectricItemList[]>(`electric/price/item/list?schemeId=${id}`)
}
// 电价配置 新增
export const addElectricPrice = (params: SystemSpace.SaveElectricPrice) => {
  return http.post<any>("/electric/price/save", params)
}
// 电价配置 新增
export const deleteElectricPrice = (params: { id: number }) => {
  return http.post<any>("/electric/price/remove", params)
}
